package com.goldmantis.alitrip.common.annotation;

import com.goldmantis.alitrip.common.sysenum.EnumLogCatagory;
import com.goldmantis.alitrip.common.sysenum.EnumOperationType;

import java.lang.annotation.*;

/**
 * @Author:Shmily
 * @Description:
 * @Date:Create in 11:03 2018/2/26
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Log {

    /**
     * 操作的具体名称
     * @return
     */
    public String operationName();

    /**
     * 日志分类，具体参考{@link EnumLogCatagory} ，默认是访问类型。
     * @return
     */
    public EnumLogCatagory logCatagory();


    /**
     *操作分类，具体参考{@link EnumOperationType}
     * @return
     */
    public EnumOperationType operationType();


}
